package com.itany.conf;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class TestMvcConfig implements WebMvcConfigurer {


    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/showlist").setViewName("userlist");
        registry.addViewController("/showlogin").setViewName("login");
        registry.addViewController("/showexamine").setViewName("supplier_examine");
        registry.addViewController("/showbooklist").setViewName("booklist");
        registry.addViewController("/supplierplatform").setViewName("supplier_platform");
        registry.addViewController("/showpermission").setViewName("permission");
        registry.addViewController("/showrole").setViewName("role");
        registry.addViewController("/showmanager").setViewName("manager");
    }
}
